package scanner;

public class SystemOutDemo {
    public static void main(String[] args) {
        String name = "小明";
        int age = 18;

        System.out.println("床前明月光");
        System.out.println("疑是地上霜");
        System.out.println("举头望明月");
        System.out.println("我是\"郭德纲\"");


        System.out.print("床前明月光");
        System.out.print("疑是地上霜");
        System.out.print("举头望明月");
        System.out.print("我是\"郭德纲\"");

        System.out.print("床前明月光\n");
        System.out.print("疑是地上霜\n");
        System.out.print("举头望明月\n");
        System.out.print("我是\"郭德纲\"\n");

        System.out.printf("我叫%s,今年%d岁。",name,age);

    }
}
